package com.xkcoding.dubbo.provider.service;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;


/**
 * @Author: dengkaibing
 * @Description:
 * @Date: 2021/3/9 14:37
 * @company 翼支付
 */


@Slf4j
@Data
@DubboService
public class UserServiceImpl implements UserService {
    @Override
    public int addUser(User user) {
        String str = RpcContext.getServerContext().getAttachment("dkb");
        log.info("rpcContext:{}",str);
        return 10;
    }
}
